<%@page import="util.Constants"%>

<%
    String employid = (String) session.getAttribute("employid");
    String name = (String) session.getAttribute("name");
    String  shortname = (String) session.getAttribute("shortname");
    String date = (String) session.getAttribute("date");
    String month = (String) session.getAttribute("month");
    String year = (String) session.getAttribute("year");
    String gender = (String) session.getAttribute("gender");
    String personalid = (String) session.getAttribute("personalid");
    String password = (String) session.getAttribute("password");
    String positionid = (String) session.getAttribute("position");
%>
<input type="hidden" name="employid" value="<%=employid%>"/>
<div id="inputform">
    <div class="row">
        <span class="label">Name</span>
        <input class="value" type="text" maxlength="20" name="name" value="<%=name%>"/>
    </div>
    <div class="row">
        <span class="label">ShortName</span>
        <input class="value" type="text" maxlength="20" name="shortname" value="<%=shortname%>"/>
    </div>
    <div class="row">
        
    <span class="label">Birth</span>
    <select name="date" style="width: 50px;"><% util.StringDate.insertDateBoxValue(out, date);%></select>
    <select name="month" style="width: 50px;"><% util.StringDate.insertMonthBoxValue(out, month);%></select>
    <select name="year" style="width: 100px;"><% util.StringDate.insertYearBoxValue(out, year);%></select>
    <div class="clear"></div>

    </div>
     <div class="row">
        <span class="label">Gender</span>
        <select size="1" id="position" name="gender" value ="<%=gender%>">
            <option value="<%=gender%>"><%=gender%></option>
            <option value=""></option>
            <option value="Male">Male</option>
            <option value="Female">Female</option></select>
    </div>
    <div class="row">
        <span class="label">PersonalID</span>
        <input class="value" type="text" maxlength="9"  name="personalid" value="<%=personalid%>"/>
    </div>
     <div class="row">
        <span class="label">PositionID</span>
        
       <select size="1" id="position" name="position" value ="<%=positionid%>">
                <%
                    controller.employeeController.addDataPosition(out);
                %>	
        </select>
    </div>
        <div class="row">
        <span class="label">Password</span>
        <input class="value" type="password" maxlength="50"  name="password" value="<%=password%>"/>
    </div>
    <div class="row">
        <a onclick="doAction(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
            '<%=Constants.USER_MANAGEMENT_PAGE_NAME%>', '<%=Constants.USER_LIST%>',
            '<%=Constants.EDIT%>')">Save</a>
    </div>
</div>